package com.jiangdong.craft.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Objects;

/**
 * t_procedure
 * @author 
 */
public class Procedure implements Serializable {
    private Integer id;

    private String name;

    private String describe;

    private String standard;

    private Date createTime;

    private List<Integer> frontNodes;

    private List<Integer> postNodes;

    public List<Integer> getFrontNodes() {
        return frontNodes;
    }

    public void setFrontNodes(List<Integer> frontNodes) {
        this.frontNodes = frontNodes;
    }

    public List<Integer> getPostNodes() {
        return postNodes;
    }

    public void setPostNodes(List<Integer> postNodes) {
        this.postNodes = postNodes;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Procedure{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", describe='" + describe + '\'' +
                ", standard='" + standard + '\'' +
                ", createTime=" + createTime +
                ", frontNodes=" + frontNodes +
                ", postNodes=" + postNodes +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Procedure)) return false;
        Procedure procedure = (Procedure) o;
        return Objects.equals(getId(), procedure.getId()) &&
                Objects.equals(getName(), procedure.getName()) &&
                Objects.equals(getDescribe(), procedure.getDescribe()) &&
                Objects.equals(getStandard(), procedure.getStandard()) &&
                Objects.equals(getCreateTime(), procedure.getCreateTime()) &&
                Objects.equals(getFrontNodes(), procedure.getFrontNodes()) &&
                Objects.equals(getPostNodes(), procedure.getPostNodes());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getName(), getDescribe(), getStandard(), getCreateTime(), getFrontNodes(), getPostNodes());
    }
}